package com.zzb.projectfactory.framework.dict.entity;

import com.zzb.projectfactory.framework.autodoc.annotation.AutoDocField;
import com.zzb.projectfactory.framework.common.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
* 数据字典 实体类
*/
@Table(name = "sys_dict")
@Entity
public class SysDict extends BaseEntity {
    @Column(name = "param_key")
    @AutoDocField(value = "键")
    private String paramKey; //键
    @Column(name = "key_comment")
    @AutoDocField(value = "字典备注")
    private String keyComment; //字典备注
    @Column(name = "data_type")
    @AutoDocField(value = "数据类型")
    private String dataType; //数据类型
    @Column(name = "param_value")
    @AutoDocField(value = "值")
    private String paramValue; //值
    @Column(name = "value_comment")
    @AutoDocField(value = "值备注")
    private String valueComment; //值备注
    @Column(name = "param_order")
    @AutoDocField(value = "排序顺序，正序")
    private Integer paramOrder; //排序顺序，正序

    /*----------------------get set 方法----------------------*/
    public String getParamKey() {return paramKey;}
    public void setParamKey(String paramKey){this.paramKey = paramKey == null ? null : paramKey.trim();}
    public String getKeyComment() {return keyComment;}
    public void setKeyComment(String keyComment){this.keyComment = keyComment == null ? null : keyComment.trim();}
    public String getDataType() {return dataType;}
    public void setDataType(String dataType){this.dataType = dataType == null ? null : dataType.trim();}
    public String getParamValue() {return paramValue;}
    public void setParamValue(String paramValue){this.paramValue = paramValue == null ? null : paramValue.trim();}
    public String getValueComment() {return valueComment;}
    public void setValueComment(String valueComment){this.valueComment = valueComment == null ? null : valueComment.trim();}
    public Integer getParamOrder() {return paramOrder;}
    public void setParamOrder(Integer paramOrder){this.paramOrder = paramOrder;}
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "SysDict{" +
        "id='" + getId() + '\'' + ',' + 
        "paramKey='" + getParamKey() + '\'' + ',' + 
        "keyComment='" + getKeyComment() + '\'' + ',' + 
        "dataType='" + getDataType() + '\'' + ',' + 
        "paramValue='" + getParamValue() + '\'' + ',' + 
        "valueComment='" + getValueComment() + '\'' + ',' + 
        "paramOrder='" + getParamOrder() + '\'' + ',' + 
        "createTime='" + getCreateTime() + '\'' + ',' + 
        "creator='" + getCreator() + '\'' + ',' + 
        "updateTime='" + getUpdateTime() + '\'' + ',' + 
        "updater='" + getUpdater() + '\'' + ',' + 
        "activate='" + getActivate() + '\'' + 
        '}';
    }
}
